package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.PeachVoice;

public interface PeachVoiceApi {

    //发送语音
    String save(PeachVoice peachVoice);

    //随机抽取一条没被读过的语音
    PeachVoice randomVoice(int count, Long userId);

    //语音阅后即焚，保证只被一个人阅读
    void remove(PeachVoice peachVoice);
}
